home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ahoy 1987 February
/
Ahoy_Magazine_87-02_1987_Double_L.d64
/
Greased Igpay
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
792b
|
22 lines
0 rem << cd38-3 >>
1 rem problem #34-2 :
2 print" greased igpay"
4 rem =================================
5 rem - solution by dr. curryfavor -
6 rem =================================
10 inputa$:v$="aeiou"
20 forv=1to5:ifleft$(a$,1)=mid$(v$,v,1)thenprinta$"ay":goto10
30 next:a$=right$(a$,len(a$)-1)+left$(a$,1):goto20
40 rem next:a$=mid$(a$,2)+left$(a$,1):goto20
94 rem =================================
95 rem - solution by chris barth -
96 rem =================================
100 geta$:if a$=" "thenprintw$"ay":run100
110 forv=1to5:a=a+(a$=mid$("aeiou",v,1)):next:ifa<0thenprinta$;:goto100
120 w$=w$+a$:goto100
194 rem ================================
195 rem - solution by greg smisek -
196 rem ================================
200 inputw$:forc=1tolen(w$):forl=1to6+(c=1):ifmid$(w$,c,1)<>mid$("aeiouy",l,1)thennext:next
210 c=c+(c=3andmid$(w$,2,1)="h"):printmid$(w$,c)left$(w$,c-1)chr$(-87*(c=1))"ay":run200